<template>
 <div class="container" v-show="isShow">
     <!--loading-->
		<div class="loadingBox">
			<ul>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
			</ul>
			<p>Loading...</p>
		</div>

 </div>
</template>

<script>
export default {
  props: {
    isShow: {
      type: Boolean
    }
  },
  data() {
    return {};
  },
  mouted(){
  },
  components: {}
};
</script>

<style scoped lang="less">
@keyframes loading {
    0% {
        height: 1rem;
    }

    50% {
        height: 0.2rem;
    }

    100% {
        height: 1rem;
    }
}
.container{
    position: absolute;
    top:0;
    height:0;
    width: 100%;
    height: 100%;
    background: #4343f0;
    z-index: 1000;
}
.loadingBox {
    width: 100%;
    height: 100%;
    background: #4343f0;
}

.loadingBox p {
    color: white;
    font-size: 0.4rem;
    text-align: center;
}

.loadingBox ul {
    margin: 4.5rem auto 0;
    width: 3rem;
    height: 3rem;
    left: 50%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loadingBox ul li {
    list-style: none;
    width: 0.15rem;
    height: 1rem;
    border-radius: 0.1rem;
    background: white;
    animation: loading 0.5s linear infinite;
}

.loadingBox ul li:nth-last-child(1), .loadingBox ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.loadingBox ul li:nth-last-child(2), .loadingBox ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.loadingBox ul li:nth-last-child(3), .loadingBox ul li:nth-child(3) {
    animation-delay: 0.3s;
}

.loadingBox ul li:nth-last-child(4) {
    animation-delay: 0.4s;
}
</style>
